package com.houtai.aclservice.service;

import com.alibaba.fastjson.JSONObject;
import com.houtai.aclservice.entity.AclPermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lin
 * @since 2022-12-11
 */
public interface AclPermissionService extends IService<AclPermission> {

    List<AclPermission> queryAllMenu();

    void removeChildById(String id);

    void saveRolePermission(String roleId, String[] permissionId);

    List<AclPermission> selectAllMenu(String roleId);

    List<String> selectPermissionValueByUserId(String id);

    List<JSONObject> selectPermissionByUserId(String id);
}
